<template>
  <div class ="container">
    <!--顶部全局组件-->
    <HospitalTop></HospitalTop>

    <!--中部路由组件的区域-->
    <div class="content">
      <!--展示路由展示出口-->
      <router-view></router-view>
    </div>

    <!--底部组件的区域-->
    <HospitalBottom></HospitalBottom>

    <!--  登录组件  -->
    <Login v-if="userStore.visible"></Login>
  </div>
</template>

<script setup lang="ts">
import useUserStore from "@/store/modules/user.ts";

let userStore = useUserStore();


</script>

<style scoped lang="scss">
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  .content {
    margin-top: 70px;
    width: 1200px;
    min-height: 700px;
  }
}
</style>
